STU_SIZE EQU 22
MAX_STU_NUM EQU 10
STACK_DEPTH EQU 256

AGE_BIAS EQU 10
ID_BIAS EQU 11
SCORE_BIAS EQU 21

STUDENT struc
	xName db 10 dup(?)
	xAge db ?
	xId db 10 dup(?)
	xScore db ?
STUDENT ends

outputstr macro str, num ,top ,left ,attr
	push ax
	push bx
	push bp
	push cx
	push dx
	mov ah,13h
	lea bp,str
	mov cx,num
	mov dh,top
	mov dl,left
	mov bh,0
	mov al,1
	mov bl,attr
	int 10h
	pop dx
	pop cx
	pop bp
	pop bx
	pop ax
endm

output_char macro c, attr
	mov byte ptr es:[di], c
	inc di
	mov byte ptr es:[di], attr
	inc di
endm

increase macro data
	mov al, data
	inc al
	mov data, al
endm
